
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String basepath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath() + "/";
%>
<!DOCTYPE html>
<html>
<head>
	<base href="<%=basepath%>" />
	<title>创业网--后台管理</title>
	<meta charset="utf-8">
	<style type="text/css">
*{
	margin:0px;
}
div{
	
	box-sizing:border-box; 
	-moz-box-sizing:border-box;
	-webkit-box-sizing:border-box;
}
.clearfix:before,.clearfix:after{ 
    content:""; 
    display:table; 
} 
.clearfix:after{clear:both;} 
.clearfix{ 
 *zoom:1;/*IE/7/6*/
 overflow: hidden;
}
.top{
    width: 1000px;
    height: 70px;
    margin: 0 auto;
}
.top>a>img{
    width: 325px;
}
.top>div{
    margin-top: 15px;
    float: right;
}
.top>div>p{
    margin-top: 15px;
    font-size: 14px;
}
.top>div>p>a{
    text-decoration: none;
}
.top>div>p>a:hover{
    color: #90c624;
}
.body_wrap{
    width: 100%;
    background: #f7f7f7;
    padding-top: 50px;
}
.body_wrap .middle{
    width: 1000px;
    min-height:600px;
    margin: 0 auto;
}
.body_wrap .middle .left,.right{
    float: left;
}
.body_wrap .left_top{
	padding-top: 25px;
	background: #90c624;
	width:180px;
	height: 100px;
	text-align: center;
	color: #fff;
	font-size: 20px;
}
.body_wrap .left_botton{
    width: 180px;
    background: #fff;
    color: #6d6d6d;
    text-align: center;
}
.body_wrap .left_botton>p{
	font-size:14px;
}
.body_wrap .left_botton>p>a{
    text-decoration:none;
    display: block;
    color: #000;
    padding:15px;
}
.botton_p_click,.body_wrap .left_botton>p:hover{
    background: #d1d1d4;
    border-left: 3px solid #96c720;
}
.body_wrap .right{
    float: left;
    width: 800px;
    padding-left: 30px;

}
.body_wrap #zhuye p{
    width:230px;
    margin-top:5px;
    margin:0  auto;
    color:#90c624;
}
.body_wrap #zhuye {
    padding-top: 150px;
}
.body_wrap #zhuye P a{
    color: red;
    margin:0px 5px;
    text-decoration: none;
}
.body_top>div{
    height: 55px;
    margin:0 auto;
}
.body_top>div>p{
    font-family:"微软雅黑";
    color: #90c624;
    font-size:25px;
    font-weight:900;
    display: inline-block;
}
.body_top>div>div{
    display: inline-block;
}
.body_top>div>div>p{
    font-weight:500;
    font-size: 12px;
    color: #8f8f8f;
}
.body_top>div>div>.last_p{
    color: #90c624;
    font-size: 11px;
    letter-spacing: 0px;
}
.back_shadow{
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 50;
    left: 0;
    background-color: #000;
    opacity: 0.5;
    display: none;
}
.fy{
	margin: 0 auto;
  	height: 40px;
}
.fy>ul>li{
	cursor: pointer;
	float: left;
	width: 25px;
  	height: 25p;
  	font-size:12px;
  	text-align: center;
  	line-height: 30px;
	border: 1px solid #96c720;
	list-style: none;
	margin: 0 5px;
}
.fy>span{
	cursor:pointer;
	width:45px;
	font-size:13px;
	text-align:center;
	height:30px;
	float:left;
	line-height:30px;
	border:1px solid #96c720;
	list-style:none;
	
}
.fy_on{
	background-color:#96c720;
	color:#fff;
}


	</style>
	<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
	<script type="text/javascript" src="js/jq-pjax.js"></script>
	<link rel="stylesheet" type="text/css"  href="umeditor/themes/default/css/ueditor.min.css">
    <script type="text/javascript" src="umeditor/ueditor.config.js"></script>
    <script type="text/javascript" src="umeditor/ueditor.all.min.js"></script>
    <script type="text/javascript" src="umeditor/lang/zh-cn/zh-cn.js"></script>
	<script >
	$(document).ready(function(){
		$(".qh_right>div>div img").parent().siblings().css("display","none");
		//$(".ds,.qh_right,.qh_left").css("display","none");
		
		$(".qh_right>div>div img").click(function(){
			$(this).parent().siblings().fadeToggle();
		});
		$(".tjds").click(function(){
			$(this).parent().next().fadeToggle();
		});
		$(".remove").click(function(){
			$(this).parent().parent().parent().css("display","none");
		});
		
		//新闻公告管理
		$(".gg>div img").click(function(){
			$(this).parent().siblings().slideToggle();
			$(this).parent().parent().siblings().slideToggle();
		})
        $(".left_botton>p").click(function(){
            $(this).css({"background":"#d1d1d4","borderLeft":"3px solid #96c720"});
            $(this).siblings('p').css({"background":"","borderLeft":""});
        })
		$(function(){
			 if(!!window.history.pushState){
  			$(document).pjax("a.turn_pjax","#main_right");
			 }else{
				 $("a.turn_pjax").click(function(){
					 var url = $(this).attr("href");
					 htmlobj=$.ajax({
						 url:url,
						 beforeSend :function(xhr){ xhr.setRequestHeader('x-pjax','true')},
						 success:function(data){
							 $("#main_right").html(data);
							 console.log(data);
					}
				 })
				 return false;
			 })
			 }
		})
		<% if(request.getAttribute("pjax_back") != null && !request.getAttribute("pjax_back").equals("")) {%> 
		<%=(String)request.getAttribute("pjax_back") %>
	<% } %>
	})
</script>

</head>
<body>
    <div class="back_shadow"></div>
	<div class="top" id="top">
		<a href="index"><img src="img/logo.png" alt="重庆邮电大学" /></a>
		<div>
			<p>欢迎您！<b>${sessionScope.user.get(0)}</b>|<a href="index">返回首页</a>|<a href="loginout">注销</a></p>
		</div>	
	</div>
	    <div class="body_wrap">
        <div class="middle clearfix">
            <div class="left">
                <div class="left_top">
                    <p>ADMINISTRATOR</p>
                    <p class="last_p">管理员</p>
                </div>
                <div class="left_botton">
                    <p><a class="turn_pjax" href="admin/link_addTeac">管理导师</a></p>
        			<p><a class="turn_pjax" href="admin/link_addInve">管理投资人</a></p>
        			<p><a class="turn_pjax" href="admin/link_team">管理团队</a></p>
        			<!-- <p><a class="turn_pjax" href="admin/link_addCdyy">审批场地</a></p> -->
        			<p><a class="turn_pjax" href="admin/link_exampro">审批项目</a></p>
        			<p><a class="turn_pjax" href="admin/link_addNetice">新闻公告管理</a></p>
        			<p><a class="turn_pjax" href="admin/link_addLabel">增加标签</a></p>
        			<!-- <p><a class="turn_pjax" href="admin/link_seekCale">查看日历</a></p> -->
                </div>
            </div>
            <div class="right" id="main_right">
                <div id="zhuye">
                    <p><b>欢迎来到后台管理，您辛苦了！</b></p>
               <% 
               int cdyy = request.getAttribute("cdyy") != null?Integer.parseInt(request.getAttribute("cdyy").toString()):0;
               int pro  = request.getAttribute("pro") != null?Integer.parseInt(request.getAttribute("pro").toString()):0;
               if(cdyy != 0 || pro != 0) { %>
               <p>您还有重要任务未完成！</p>
               <% } if(cdyy != 0) { %>
               <p>场地预约:<a class="turn_pjax" href="admin/link_addCdyy?status=0"><%=cdyy %>项</a>未处理</p>
               <% } if(pro != 0) {%>
               <p>项目申请:<a class="turn_pjax" href="admin/link_exampro?status=0"><%=pro %>项</a>未处理</p>
               <% } %>
                </div>
            </div>
        </div>
    </div>
</body>
</html>